package com.pan.admin.module.loanUser.dao;

import com.pan.admin.module.loanUser.entity.LoanUserRegister;
import com.pan.admin.module.loanUser.entity.LoanUserRegisterProduct;
import com.pan.admin.module.loanUser.entity.qo.LoanUserRegisterProductQo;
import com.pan.admin.module.loanUser.entity.qo.LoanUserRegisterQO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description: 用户注册Mapper接口
 * @Author: ghb
 * @Date: 2023/9/7 16:55
 */
@Mapper
public interface LoanUserRegisterMapper {
    /**
     * 查询用户注册
     *
     * @param id 用户注册主键
     * @return 用户注册
     */
    LoanUserRegister getById(Long id);

    /**
     * 查询用户注册列表
     *
     * @param loanUserRegisterQO 用户注册
     * @return 用户注册集合
     */
    List<LoanUserRegister> list(LoanUserRegisterQO loanUserRegisterQO);


    /**
     * CRM后台-查询用户注册列表
     *
     * @param loanUserRegister 用户注册
     * @return 用户注册集合
     */
    List<LoanUserRegister> listCrm(LoanUserRegister loanUserRegister);

    /**
     * 查询用户注册列表详情
     */
    List<LoanUserRegister> detailsChannelList(LoanUserRegister loanUserRegister);

    /**
     * 新增用户注册
     *
     * @param loanUserRegister 用户注册
     * @return 结果
     */
    int insertLoanUserRegister(LoanUserRegister loanUserRegister);

    /**
     * 修改用户注册
     *
     * @param loanUserRegister 用户注册
     * @return 结果
     */
    int updateLoanUserRegister(LoanUserRegister loanUserRegister);

    /**
     * 查询用户注册列表机构详情
     */
    List<LoanUserRegisterProduct> listUserByProductId(LoanUserRegisterProductQo loanUserRegister);
}
